package com.karry.yl.domain.elder;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.karry.commons.base.SuperEntity;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * 出院记录
 */
@TableName("check_out_records")
public class CheckOutRecords extends SuperEntity {

    private Long elderlyId; //所属老人
    private String elderlyName;  //老人姓名
    private Long orgId; //所属机构
    private String orgName; //机构名称

    private String buildingNo;  //入住楼号
    private String roomNo; //入住房间号
    private String bedId; //床位id
    private String bedNo; //床位号
    private  String checkOutImg;//退院手续路径，多个用逗号隔开的

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date checkOutDate;//退院时间

    private Long checkInRecordsId;  //入院记录Id
    /**
     * 退院原因  0自愿1死亡2其他
     */
    private  Integer checkOutCause;

    public Integer getCheckOutCause() {
        return checkOutCause;
    }

    public void setCheckOutCause(Integer checkOutCause) {
        this.checkOutCause = checkOutCause;
    }

    public String getCheckOutImg() {
        return checkOutImg;
    }

    public void setCheckOutImg(String checkOutImg) {
        this.checkOutImg = checkOutImg;
    }

    public Date getCheckOutDate() {
        return checkOutDate;
    }

    public void setCheckOutDate(Date checkOutDate) {
        this.checkOutDate = checkOutDate;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public String getElderlyName() {
        return elderlyName;
    }

    public void setElderlyName(String elderlyName) {
        this.elderlyName = elderlyName;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Long getCheckInRecordsId() {
        return checkInRecordsId;
    }

    public void setCheckInRecordsId(Long checkInRecordsId) {
        this.checkInRecordsId = checkInRecordsId;
    }

    public String getBuildingNo() {
        return buildingNo;
    }

    public void setBuildingNo(String buildingNo) {
        this.buildingNo = buildingNo;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getBedId() {
        return bedId;
    }

    public void setBedId(String bedId) {
        this.bedId = bedId;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }
}
